package org.metasketch.simulator.tools.channels;

import java.util.ArrayList;
import java.util.List;

import org.metasketch.simulator.tools.transactions.StepDefinition;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import com.thoughtworks.xstream.annotations.XStreamOmitField;

@XStreamAlias("channel")
public class Channel {

	@XStreamAsAttribute
	String aliases;

	@XStreamOmitField
	List<ChannelDefinition> channelDefinitions = new ArrayList<ChannelDefinition>();

	@XStreamImplicit
	protected List<StepDefinition> steps = new ArrayList<StepDefinition>();

	public String getAliases() {
		return aliases;
	}

	public void setAliases(String channels) {
		this.aliases = channels;
	}

	public List<StepDefinition> getSteps() {
		return steps;
	}

	public void setSteps(List<StepDefinition> steps) {
		this.steps = steps;
	}

	public List<ChannelDefinition> getChannelDefinitions() {
		return channelDefinitions;
	}

	public void setChannelDefinitions(List<ChannelDefinition> channelDefinitions) {
		this.channelDefinitions = channelDefinitions;
	}

}
